<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<html>
  <head>
 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		 <link rel="stylesheet" type="text/css" href="css/dhtmlxlayout.css">
        <link rel="stylesheet" type="text/css" href="css/dhtmlxlayout_dhx_blue.css">
        <script src="js/dhtmlxcommon.js"></script>
        <script src="js/dhtmlxcontainer.js"></script>
        <script src="js/dhtmlxlayout.js"></script>
        
    	<link rel="STYLESHEET" type="text/css" href="css/dhtmlxtree.css">
		<script  src="js/dhtmlxtree.js"></script>

      <style>
            html, body {
                      width: 100%;
                      height: 100%;
                      margin: 0px;
                      overflow: hidden;
              }
      </style>
      <script>
              var dhxLayout;
              dhtmlxEvent(window,"load",function(){
                  dhxLayout = new dhtmlXLayoutObject(document.body,"2U");
                  dhxLayout.cells("a").setText("Navigator");
                  
                  dhxLayout.cells("a").setWidth(200);	//set the fixed width
                  dhxLayout.cells("a").fixSize(true);   //fixed the width and can not change the width
                  dhxTree = dhxLayout.cells("a").attachTree();
                  
                  
                  
                  dhxTree.setSkin('dhx_skyblue');
                  dhxTree.setImagePath("css/imgs/csh_bluebooks/");
                  dhxTree.setXMLAutoLoading("http://localhost:8080/AdvertiseBooking/getUserMenu?menuId=0");
                  dhxTree.loadXML("http://localhost:8080/AdvertiseBooking/getUserMenu?menuId=0");
                  
                  dhxTree.setOnDblClickHandler(menuDbClick);

                  

              });
              
              function menuDbClick(id){
            	  dhxLayout.cells("b").attachURL("callMenu?clickedMenuId="+id);
              }
       </script>
  </head>
  <body>
     
  </body>
</html>